package cn.lyjuan.pojoutils.bean;

/**
 * Created by ly on 2014/11/20.
 */
public class ColumnBean
{
    /**
     * 列名
     */
    public String column;

    /**
     * 是否主键
     */
    public boolean isPriKey;

    /**
     * 是否自动增长（MySQL）
     */
    public boolean autoInc;

    /**
     * 字段类型
     */
    public int type;

    /**
     * 字段类型名
     */
    public String typeName;

    /**
     * 数据库字段类型名
     */
    public String dbTypeName;

    /**
     * 默认值
     */
    public Object defVal;

    /**
     * 是否可为空
     */
    public boolean isNull;

    /**
     * 序列（Oracle）
     */
    public String seq;

    /**
     * 注释
     */
    public String comment;

    /**
     * MySQL中无符号将会影响字段类型的取值范围
     */
    public boolean isUnsigned;

    /**
     * mybatis 中 javaType
     */
    public String mybatisJavaType;

    /**
     * mybaits 中 jdbcType
     */
    public String mybatisJdbcType;


    @Override
    public String toString()
    {
        return "ColumnBean{" +
                "column='" + column + '\'' +
                ", isPriKey=" + isPriKey +
                ", autoInc=" + autoInc +
                ", type=" + type +
                ", typeName='" + typeName + '\'' +
                ", dbTypeName='" + dbTypeName + '\'' +
                ", defVal=" + defVal +
                ", isNull=" + isNull +
                ", seq='" + seq + '\'' +
                ", comment='" + comment + '\'' +
                ", isUnsigned=" + isUnsigned +
                ", mybatisJavaType='" + mybatisJavaType + '\'' +
                ", mybatisJdbcType='" + mybatisJdbcType + '\'' +
                '}';
    }
}
